﻿@{
    ViewBag.Title = "ArticlesExperience";
    Layout = "";
}

<!DOCTYPE html>

<html>
<head>
    <!-- META TAGS -->
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>试题上传</title>

    <link rel="shortcut icon" href="~/试题上传_files/favicon.png" />
    <!-- Style Sheet-->
    
    <link rel='stylesheet' id='bootstrap-css-css' href='~/试题上传_files/bootstrap5152.css?ver=1.0' type='text/css' media='all' />
    <link rel='stylesheet' id='responsive-css-css' href='~/试题上传_files/responsive5152.css?ver=1.0' type='text/css' media='all' />
    <link rel='stylesheet' id='pretty-photo-css-css' href='~/试题上传_files/prettyphoto/prettyPhotoaeb9.css?ver=3.1.4' type='text/css' media='all' />
    <link rel='stylesheet' id='main-css-css' href='~/试题上传_files/main5152.css?ver=1.0' type='text/css' media='all' />
    <link rel='stylesheet' id='custom-css-css' href='~/试题上传_filess/custom5152.html?ver=1.0' type='text/css' media='all' />
    <link href="~/试题上传_files/bootstrap.css" rel="stylesheet" />

    <link href="~/试题上传_files/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="~/试题上传_files/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="~/试题上传_files/style.css" rel="stylesheet" type="text/css" />
    <link href="~/试题上传_files/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />


    <link href="~/试题上传_files/fileinput.min.css" rel="stylesheet" />
    <script src="~/试题上传_files/jquery-1.10.2.min.js"></script>
    <script src="~/试题上传_files/bootstrap.min.js"></script>
    <script src="~/试题上传_files/js/fileinput.min.js"></script>
    <script src="~/试题上传_files/fileinput_locale_LANG.js"></script>

    <script type="text/javascript" src="~/试题上传_files/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="~/试题上传_files/layer/1.9.3/layer.js"></script>
    <script type="text/javascript" src="~/试题上传_files/datatables/1.10.0/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="~/试题上传_files/H-ui.js"></script>
    <script type="text/javascript" src="~/试题上传_files/H-ui.admin.js"></script>
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script>
        function Add() {
            var a = {
                Articlescrap_Title: $("#Articlescrap_Title").val(),
                Articlescrap_date: $("#Articlescrap_date").val(),
                Articlescrap_Content: $("#Articlescrap_Content").val(),
                Login_Id: $("#Login_Id").val(),
            };
            $.ajax({
                url: "http://localhost:32132/api/values/addinfo",
                type: "post",
                data:a,
                success: function (data) {
                    if (data > 0 && data!=null) {
                        alert("发布成功")
                        location.href = "/Home/ShowExperience";
                    }
                    else {
                        alert("发布失败")
                    }
                }
            })
        }
    </script>
</head>
<body>

    <!-- Start of Header -->
    <div class="header-wrapper">

        <header>

            <div class="container">
                <div class="logo-container">

                    <!-- Website Logo -->
                    <span class="tag-line" style="font-size:30px;padding-left:500px">发布面试经验</span>
                </div>
                <a href="/Home/Index" style="float:right;color:#808080;font-size:large">返回首页</a>
            </div>
        </header>
    </div>
    <!-- End of Header -->
    <div>
        <div class="col-md-2">

        </div>
        <div class="col-md-8">
            <form action="/Web/Up" method="post" class="form form-horizontal responsive" id="demoform-1" style="margin-top:30px" enctype="multipart/form-data">
                <div class="row cl" style="margin-top:30px">
                    <label class="form-label col-2"><span style="font-size:18px">发布标题:</span></label>
                    <div class="formControls col-10">
                        <input type="text" class="input-text" autocomplete="off" placeholder="请输入发布标题" id="Articlescrap_Title" data-form-un="1447842357469.7874" style="width:400px;height:35px" name="Tposition">
                    </div>
                </div>

                <div class="row cl" style="margin-top:30px">
                    <label class="form-label col-2"><span style="font-size:18px">文章时间:</span></label>
                    @DateTime.Now
                    @*<div class="formControls col-10">
                        <input type="datetime" class="input-text" autocomplete="off" placeholder="请输入文章时间"  id="Articlescrap_date" data-form-un="1447842357469.7874" style="width:400px;height:35px" name="Tdate">
                    </div>*@
                </div>
                <div class="row cl">
                    <label class="form-label col-2"><span style="font-size:18px">发布内容:</span></label>
                    <div class="formControls col-10">
                        <textarea class="span8" placeholder="请输入发布内容" id="Articlescrap_Content" rows="10" cols="58" name="Twrite"></textarea>
                    </div>
                </div>
                <input type="hidden" id="Login_Id" value='@Session["login_id"]' />
        
         
      
         
                <input id="Hidden1" type="hidden" name="Tname" />
                <div class="row cl" style="margin-top:30px">
                    <div class="col-10 col-offset-2">
                        <input class="btn btn-group-justified radius" type="button" onclick="Add()" value="发布" data-form-sbm="1447842357469.7874">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input class="btn btn-group-justified radius" type="button" value="取消" data-form-sbm="1447842357469.7874" onclick="location.href = '/Home/Index'">
                    </div>
                </div>
            </form>
        </div>
        <div class="col-md-2">

        </div>
    </div>
</body>
</html>

